package dao.impl;

import dao.SeckillDao;
import model.Seckill;
import utils.DaoUtil;
import utils.GenicaDaoImpl;

/**
 * @Description:
 * @Author one world
 * @Date 2020/9/22 0022 14:04
 */
public class SeckillDaoImpl extends GenicaDaoImpl<Seckill,Integer> implements SeckillDao {
    @Override
    public int findCount() {
        String sql = "select count(*) from "+ DaoUtil.getTable(Seckill.class);
        return  Integer.parseInt(DaoUtil.getOne(sql).toString());
    }
}
